/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client.event;

import com.google.gwt.event.shared.GwtEvent;
import net.customware.gwt.presenter.client.place.Place;

/**
 *
 * @author glenn
 */
public class GotoEvent extends GwtEvent<GotoEventHandler> {

    public static Type<GotoEventHandler> TYPE = new Type<GotoEventHandler>();
    public Place PLACE;

    public GotoEvent(Place p) {
        this.PLACE = p;
    }

    @Override
    public Type<GotoEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(GotoEventHandler handler) {
        handler.onGoto(this);
    }
}